package
{
	
	public class ItemTemplate extends Object
	{
		
		private var _name:String;
		private var _desc:String;
		private var _id:int;
		private var _cost:int;
		private var _mrounds:int;
		private var _qty:int;
		private var _type:String;
		
		public function ItemTemplate(itemObj:Object)
		{
			
			super();
			
				if ("strName" in itemObj)
				{
					
					_name = String(itemObj.strName);
					
				}
				
				if ("strDesc" in itemObj)
				{
					
					_desc = String(itemObj.strDesc);
					
				}
				
				if ("intID" in itemObj)
				{
					
					_id = int(itemObj.intID);
					
				}
				
				if ("intCost" in itemObj)
				{
					
					_cost = int(itemObj.intCost);
					
				}
				
				if ("intMaxRounds" in itemObj)
				{
					
					_mrounds = int(itemObj.intMaxRounds);
					
				}
				
				if ("iQty" in itemObj)
				{
					
					_qty = int(itemObj.iQty);
					
				}
				
				if ("strType" in itemObj)
				{
					
					_type = String(itemObj.strType);
					
				}
		}
		
		public function get strName():String
		{
			
			return this._name;
			
		}
		
		public function get strDesc():String
		{
			
			return this._desc;
			
		}
		
		public function get intID():int
		{
			
			return this._id;
			
		}
		
		public function get intCost():int
		{
			
			return this._cost;
			
		}
		
		public function get intMaxRounds():int
		{
			
			return this._mrounds;
			
		}
		
		public function get iQty():int
		{
			
			return this._qty;
			
		}
		
		public function get strType():String
		{
			
			return this._type;
			
		}
	}
}
		